﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SS.FitnessTracker.Web.Controllers
{
    public class FitnessTrackerController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Fitbit()
        {
            if (Session["FitbitAuthToken"] == null ||
               Session["FitbitAuthTokenSecret"] == null ||
               Session["FitbitUserId"] == null)
            {
                ViewBag.FitbitConnected = false;

            }
            else
            {
                ViewBag.FitbitConnected = true; // "Welcome Fitbit User " + Session["FitbitUserId"].ToString();
            }

            return View();
        }

        public ActionResult Withings()
        {
            return View();
        }

        public ActionResult Jawbone()
        {
            return View();
        }
    }
}